/*
 * CAppStateCreateGame.h
 *
 *  Created on: 24/12/2012
 *
 */

#ifndef CAPPSTATECREATEGAME_H_
#define CAPPSTATECREATEGAME_H_

#define MAX_NICK_LENGTH 30

#include <string>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include "CAppState.h"
#include "SurfaceWrapper.h"
#include "DataLoader.h"
using namespace std;

class CAppStateCreateGame : public CAppState{

	private:
		static CAppStateCreateGame instance;
		SDL_Surface* surface;
		SDL_Surface* bar;
		string nickWrapper;
		SDL_Surface* userIp;
		SDL_Color color;
		SDL_Surface* userNick;
		TTF_Font* font;
    private:
		CAppStateCreateGame();

		void onKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);
		void onLButtonDown(int mX, int mY);

    public:
        void onActivate();

        void onDeactivate();

        void onLoop();

        void onRender(SDL_Surface* surf_Display);

        static CAppStateCreateGame* getInstance();



};




#endif /* CAPPSTATECREATEGAME_H_ */
